package com.wxx.model;

import java.io.Serializable;

public class Msg implements Serializable, Cloneable{
	private static final long serialVersionUID = 1L;
	
    private long id;

    private String key; //not null

    private String clientKey; //not null

    private Long tranId; //not null

    private String system;

    private String sysId;

    private String value; //not null

    private String oldValue;
    
    private Boolean isWrap; //not null,默认1(true):封装
    
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key == null ? null : key.trim();
    }

    public String getClientKey() {
        return clientKey;
    }

    public void setClientKey(String clientKey) {
        this.clientKey = clientKey == null ? null : clientKey.trim();
    }

    public Long getTranId() {
        return tranId;
    }

    public void setTranId(Long tranId) {
        this.tranId = tranId;
    }

    public String getSystem() {
        return system;
    }

    public void setSystem(String system) {
        this.system = system == null ? null : system.trim();
    }

    public String getSysId() {
        return sysId;
    }

    public void setSysId(String sysId) {
        this.sysId = sysId == null ? null : sysId.trim();
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value == null ? null : value.trim();
    }

    public String getOldValue() {
        return oldValue;
    }

    public void setOldValue(String oldValue) {
        this.oldValue = oldValue == null ? null : oldValue.trim();
    }

	public Boolean isWrap() {
		return isWrap;
	}

	public void setWrap(Boolean isWrap) {
		this.isWrap = isWrap;
	}

	public Object clone() {
		Msg msgNew = new Msg();
		msgNew.id = this.id;
		msgNew.clientKey = this.clientKey;
		msgNew.key = this.key;
		msgNew.oldValue = this.oldValue;
		msgNew.sysId = this.sysId;
		msgNew.system = this.system;
		msgNew.tranId = this.tranId;
		msgNew.value = this.value;
		msgNew.isWrap = this.isWrap;
		return msgNew;
	}
}
